package cn.mhome.merchant.dao.common.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

@Entity
@Table(name="sys_user")
public class SysUser implements Serializable {

	private static final long serialVersionUID = 1L;

	private long userid;
	private String username;
	private String password;
	private String job;
	private int state;
	private long version;
	
	@Id
	@Column(name="userid")
	public long getUserid() {
		return userid;
	}
	public void setUserid(long userid) {
		this.userid = userid;
	}
	@Column(name="username")
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	@Column(name="password")
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	@Column(name="job")
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	@Column(name="state")
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	@Version
	@Column(name="version")
	public long getVersion() {
		return version;
	}
	public void setVersion(long version) {
		this.version = version;
	}
}